﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UsersMaster.master" AutoEventWireup="true"
    CodeBehind="NewStock.aspx.cs" Inherits="SMS.Stocks.NewStock" %>

<asp:Content ID="Content1" ContentPlaceHolderID="UserHeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="UserMainContent" runat="server">
    <div id="search" class="boxed">
        <h2 class="title" dir="rtl">
            <img src="../App_Themes/Theme/images/Add Item.png" class="img" />
           إضافة مخزن/محل جديد</h2>
        <div dir="rtl" class="content">
            <table dir="rtl">
                <tr>
                    <td>
                        <asp:Label ID="Label2" runat="server" Text="الإسم :"></asp:Label>
                    </td>
                    <td align="right">
                        
                        <asp:TextBox ID="txtName" runat="server" />
                    </td>
                    <td align="right">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ErrorMessage="<img src=../App_Themes/Theme/images/Error.png style=float:right; width=10%; height=10%; />"
                            ControlToValidate="txtName" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text="النوع :"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList Width="100%" ID="drpStockType" runat="server">
                            <asp:ListItem Text="محل" Value="0" />
                            <asp:ListItem Text="مخزن" Value="1" />
                        </asp:DropDownList>
                    </td>
                    <td align="right">
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label3" runat="server" Text="العنوان :"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:TextBox ID="txtAdress" runat="server" />
                    </td>
                    <td align="right">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ErrorMessage="<img src=../App_Themes/Theme/images/Error.png style=float:right; width=10%; height=10%; />"
                            ControlToValidate="txtAdress" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label4" runat="server" Text="الموبيل :"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:TextBox ID="txtMobile" runat="server" />
                        <ajax:FilteredTextBoxExtender ID="txtMobile_FilteredTextBoxExtender" 
                            runat="server" Enabled="True" FilterType="Numbers" TargetControlID="txtMobile">
                        </ajax:FilteredTextBoxExtender>
                    </td>
                    <td align="right">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ErrorMessage="<img src=../App_Themes/Theme/images/Error.png style=float:right; width=10%; height=10%; />"
                            ControlToValidate="txtMobile" runat="server" />
                    </td>
                </tr>
              <%--  <tr>
                    <td>
                        <asp:Label ID="Label5" runat="server" Text=":الهاتف"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:TextBox ID="txtPhone" runat="server" />
                    </td>
                    <td align="right">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ErrorMessage="<img src=../App_Themes/Theme/images/Error.png style=float:right; width=10%; height=10%; />"
                            ControlToValidate="txtPhone" runat="server" />
                    </td>
                </tr>--%>
                <tr>
                    <td colspan="2" align="left">
                        <asp:Button ID="btnSave" CssClass="checkoutbutton" Text="حفظ" runat="server" OnClick="btnSave_Click" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:Panel  runat="server">  
                            <asp:Label Width="100%" ForeColor="Red" ID="lblResult" runat="server" />
                        </asp:Panel> 
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
